from django.urls import path
from inventory.views.export import get_data_from_jingzhi, download_history_strip_steel_table, \
    download_angle_steel_table_true_store, download_angle_steel_table_weight, \
    download_scrap_steel, angle_steel_auto_store_table, product_material_inout_table
from inventory.views.handle import handle_crud, handle_group_crud, handle_fuzzy_search, handle_group_fuzzy_search, \
    handle_group_deactivation_and_activation, handle_deactivation_and_activation
from inventory.views.material import material_crud, material_fuzzy_search, angle_steel_store_modify_only, \
    rust_angle_steel
from inventory.views.material_group import material_group_deactivation_and_activation, material_group_crud, \
    material_deactivation_and_activation, material_group_fuzzy_search
from inventory.views.record import record_list_crud, record_fuzzy_search
from inventory.views.summary import summary_crud, summary_fuzzy_search, summary_material_group_inout
from inventory.views.upload import in_out_table

urlpatterns = [
    # material_group.py
    path('material_group_deactivation_and_activation', material_group_deactivation_and_activation, name='material_group_deactivation_and_activation'),
    path('material_deactivation_and_activation', material_deactivation_and_activation, name='material_deactivation_and_activation'),
    path('material_group_crud', material_group_crud, name='material_group_crud'),
    path('material_group_fuzzy_search', material_group_fuzzy_search, name='material_group_fuzzy_search'),

    # material.py
    path('material_crud', material_crud, name='material_crud'),
    path('material_fuzzy_search', material_fuzzy_search, name='material_fuzzy_search'),
    path('angle_steel_store_modify_only', angle_steel_store_modify_only, name='angle_steel_store_modify_only'),
    path('rust_angle_steel', rust_angle_steel, name='rust_angle_steel'),

    # handle.py
    path('handle_crud', handle_crud, name='handle_crud'),
    path('handle_group_crud', handle_group_crud, name='handle_group_crud'),
    path('handle_fuzzy_search', handle_fuzzy_search, name='handle_fuzzy_search'),
    path('handle_group_fuzzy_search', handle_group_fuzzy_search, name='handle_group_fuzzy_search'),
    path('handle_group_deactivation_and_activation', handle_group_deactivation_and_activation, name='handle_group_deactivation_and_activation'),
    path('handle_deactivation_and_activation', handle_deactivation_and_activation, name='handle_deactivation_and_activation'),

    # export.py
    path('get_data_from_jingzhi', get_data_from_jingzhi, name='get_data_from_jingzhi'),
    path('download_angle_steel_table_true_store', download_angle_steel_table_true_store, name='download_angle_steel_table_true_store'),
    path('download_angle_steel_table_weight', download_angle_steel_table_weight, name='download_angle_steel_table_weight'),
    path('download_history_strip_steel_table', download_history_strip_steel_table, name='download_history_strip_steel_table'),
    path('download_scrap_steel', download_scrap_steel, name='download_scrap_steel'),
    path('angle_steel_auto_store_table', angle_steel_auto_store_table, name='angle_steel_auto_store_table'),
    path('product_material_inout_table', product_material_inout_table, name='product_material_inout_table'),

    # record.py
    path('record_list_crud', record_list_crud, name='record_list_crud'),
    path('record_fuzzy_search', record_fuzzy_search, name='record_fuzzy_search'),

    # upload.py
    path('in_out_table', in_out_table, name='in_out_table'),

    # summary.py
    path('summary_crud', summary_crud, name='summary_crud'),
    path('summary_fuzzy_search', summary_fuzzy_search, name='summary_fuzzy_search'),
    path('summary_material_group_inout', summary_material_group_inout, name='summary_material_group_inout'),
]
